﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QLDVu.BO
{
    public class ChiTietPhieuBaoGia : INotifyPropertyChanged
    {
        private string _chitietbaogia;
        private string _machitietbaogia;
        //private string _tendichvu;
        //private string _madichvu;
        private int _soluong;
        private int _dongia;
        private int _thanhtien;
        private string _loaibaogia;
        

        public event PropertyChangedEventHandler PropertyChanged;
        public ChiTietPhieuBaoGia(string loaibaogia, string machitietbaogia, string tenchitietbaogia,int soluong,int dongia,int thanhtien)
        {
            //_tendichvu = tendichvu;
            //_madichvu = madichvu;
            _loaibaogia = loaibaogia;
            _machitietbaogia = machitietbaogia;
            _chitietbaogia = tenchitietbaogia;
            _soluong = soluong;
            _dongia = dongia;
            _thanhtien = thanhtien;


        }
        //public string TenDichVu
        //{
        //    get { return _tendichvu; }
        //    set
        //    {
        //        _tendichvu = value;
        //        this.NotifyPropertyChanged("TenDichVu");
        //    }
        //}
        //public string MaDichVu
        //{
        //    get { return _madichvu; }
        //    set
        //    {
        //        _madichvu = value;
        //        this.NotifyPropertyChanged("MaDichVu");
        //    }
        //}
        public string LoaiBaoGia
        {
            get { return _loaibaogia; }
            set
            {
                _loaibaogia = value;
                this.NotifyPropertyChanged("LoaiBaoGia");
            }
        } 
        public string MaChiTietBaoGia
        {
            get { return _machitietbaogia; }
            set
            {
                _machitietbaogia = value;
                this.NotifyPropertyChanged("MaChiTietBaoGia");
            }
        } 
        
        public string TenChiTietBaoGia
        {
            get { return _chitietbaogia; }
            set
            {
                _chitietbaogia = value;
                this.NotifyPropertyChanged("TenChiTietBaoGia");
            }
        }

        public int SoLuong
        {
            get { return _soluong; }
            set
            {
                _soluong = value;
                this.NotifyPropertyChanged("SoLuong");
            }
        }
        public int DonGia
        {
            get { return _dongia; }
            set
            {
                _dongia = value;
                this.NotifyPropertyChanged("DonGia");
            }
        }
        public int ThanhTien
        {
            get { return _thanhtien; }
            set
            {
                _thanhtien = value;
                this.NotifyPropertyChanged("ThanhTien");
            }

        }
       
        private void NotifyPropertyChanged(string name)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(name));
        }
    }
}
